<!--Đăng nhập-->
<div class="right">
  <?php include './Controller/ctrl_right-dangnhap.php'; ?>
</div><!--end đăng nhập-->

<!--Sản phẩm bán chạy-->
<div class="right">
      <div class="right_tieude">
              <img class="hinhds" src="./Picture/sp ban chay.jpg"   />
              <h3>Sản phẩm đề nghị</h3>              
      </div>
       <div class="right_noidung">
        	<marquee direction="up" style="transform-style:preserve-3d" onmouseover="this.stop();" onmouseout="this.start();">
            	<?php
	   		$arr=sanpham::GetSPDeNghi();
			for($i=0;$i<count($arr);$i++)
			{
		?>
       		<div class="right_sanpham">
        		<img src="<?php echo $arr[$i]->Hinh;?>" />
            	<label style="font-style:italic; color:#F00;"><?php echo $arr[$i]->Ten;?></label>
                <p style="text-align:left; border:1px dotted red;"><?php echo $arr[$i]->MoTa;?></p>
            	<span><a href="./index.php?obj=sanpham&chitiet=<?php echo $arr[$i]->idSanPham;?>">Xem chi tiết sản phẩm...</a></span>       
      		</div>
       <?php
			}
		?>
            </marquee>
      </div>
</div> <!--end .right-->

<!--Tin tức-->
<div class="right">
      <div class="right_tieude">
              <img class="hinhds" src="./Picture/icon.png"   />
              <h3>TOP 5 Tin tức HOT</h3>              
      </div>
       <div id="right_tintuc">
       <?php
	   		$arr=tintuc::GetTop5();
			for($i=0;$i<count($arr);$i++)
			{
		?>
       		<div class="right_news">
        		<img src="./Picture/news/new.gif" />
            	<p><?php echo $arr[$i]->MoTa;?></p>
            	<span><a href="./index.php?obj=tintuc&tt=<?php echo $arr[$i]->idTinTuc;?>"><img src="./Picture/news/more.gif" /></a></span>       
      		</div>
       <?php
			}
		?>
</div> <!--end .right-->